package com.ddwl.schema.vo.message;

import com.alibaba.fastjson.annotation.JSONField;
import com.ddwl.schema.serialize.InstantSerializer;
import com.ddwl.schema.vo.user.UserVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/8/13 18:09
 */
@ApiModel(description = "消息Vo")
@Setter
@Getter
public class MessageVo {

    @ApiModelProperty("消息ID")
    private String id;
    @ApiModelProperty("用户ID")
    private String userId;
    @ApiModelProperty("消息类型 0系统通知 1活动通知 2充值通知 3消费通知")
    private Byte type;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("跳转链接")
    private String linkUrl;
    @ApiModelProperty("所属产品")
    private String product;
    @ApiModelProperty("读取状态")
    private Boolean read;
    @ApiModelProperty("创建时间")
    @JSONField(serializeUsing = InstantSerializer.class)
    private String gmtCreated;
    @ApiModelProperty("已读用户")
    private List<UserVo> readers;

}
